package com.xbongbong.paas.bi.pojo;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 分组汇总节点字段pojo
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Data
@ToString
public class DataSetNodeGroupPojo extends DataSetNodePojo {
    private static final long serialVersionUID = 3494199115095920125L;
    /**
     * 流入节点的节点id集合
     * 分组汇总节点有且仅有1个流入节点
     */
    @Max(value = 1, message = "{pojo.msg.dataSetNode.input.max}")
    @NotEmpty(message = "{pojo.msg.dataSetNode.input.NotEmpty}")
    private List<String> input;
    /**
     * 分组字段
     */
    @NotEmpty(message = "{pojo.msg.dataSetNodeGroup.group.NotEmpty}")
    private List<DataSetNodeFieldPojo> group;
    /**
     * 汇总字段
     */
    @NotEmpty(message = "{pojo.msg.dataSetNodeGroup.sum.NotEmpty}")
    private List<DataSetNodeFieldPojo> sum;
}
